package com.kongyz;

import com.kongyz.item.ChickenBurger;
import com.kongyz.item.Coke;
import com.kongyz.item.Pepsi;
import com.kongyz.item.VegBurger;

/**
 * @author kongyz
 * @date 2018/6/21 22:13
 * @Description:
 */
public class MealBuilder {

    public static void main(String[] args) {
        Meal meal=new Meal();
        meal.addItem(new VegBurger());
        meal.addItem(new Coke());
        meal.shotItems();
        System.out.println("总价："+meal.getCost());


        Meal meal2=new Meal();
        meal2.addItem(new ChickenBurger());
        meal2.addItem(new Pepsi());
        meal2.shotItems();
        System.out.println("总价："+meal2.getCost());
    }

}
